package com.qz.mos.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
@Data
@SQLDelete(sql= "update route_info delete_flag=true where id=?" )
@Where(clause = "delete_flag=false" )
public class RouteInfo {
    @Id
    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @GeneratedValue(generator = "jpa-uuid")
    private String id;
    private String name;
    private String uri;
    private String predicates;
    private String filters;
    private Boolean enabled;
    private String description;
    private Integer orderNum;
    private Long createTime;
    private Long modifyTime;
    private String createId;
    private String modifyId;

    private Boolean deleteFlag;
}